package Clients;

import com.gongj.commons.pojo.User;
import org.springframework.web.bind.annotation.*;

import java.io.UnsupportedEncodingException;


public interface IUserClient {

    @GetMapping
    String getUser();  //这个方法名可以随便起

    @GetMapping("/getName")
    String getName(@RequestParam("name") String userName);

    @PostMapping("/addUserJson")
    public User addUserJson(@RequestBody User userInfo);

    @GetMapping("/getUserInfo/{id}")
    public String getUserInfo(@PathVariable("id") String userId);


    @GetMapping("/findByLikeName")
    public String findByLikeName(@RequestHeader("name") String userName) throws UnsupportedEncodingException;
}
